﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Common/Master/FrameMain.Master" AutoEventWireup="true" CodeBehind="NetpayStatistic.aspx.cs" Inherits="FortuneHeaven.Admin.Pages.Statistic.NetpayStatistic" %>
<%@ Register TagPrefix="uc1" TagName="TxtPagination" Src="~/Controls/TxtPagination.ascx" %>
<%@ Import Namespace="FortuneHeaven.Admin.Common" %>
<%@ Import Namespace="FortuneHeavenCommon.Enum" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link  href="../../Content/CSS/Common.css" rel="Stylesheet"  type="text/css"/>
       <link type="text/css" rel="Stylesheet" href="../../Content/CSS/calender.css" />
    <script type="text/javascript" src="../../Common/Js/SimpleCalendar.js"></script>
    <script type ="text/javascript">
        jQuery(document).ready(function () {
            var t1 = $('#<%=txtBegin.ClientID%>');
            t1.simpleDatepicker();
            var t2 = $('#<%=txtEnd.ClientID%>');
            t2.simpleDatepicker();

        });
        function checkValue() { 
            var t1 = $('#<%=txtBegin.ClientID%>');
          
            var t2 = $('#<%=txtEnd.ClientID%>');

            if (!t1.val() || t1.val() == "") {
                alert("请选择开始日期");
                return false;
            }
            else {
                if (!t2.val() || t2.val() == "") {
                    alert("请选择结束日期");
                    return false;
                }
            }
            return true;
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="toolbar">
     
    </div>
    <div id="head">
        <div class="left">
            <asp:Label ID="lblDeptName" runat="server" Font-Bold="true"></asp:Label>
            <asp:Label ID="lblStatistic" runat="server"></asp:Label>
        </div>
        <div class="right">
            <asp:Label ID="lbGiftOrder" runat="server" Text="开始日期: "></asp:Label>
            <asp:TextBox ID="txtBegin" runat="server"  CssClass="txt" style="width: 100px;" ></asp:TextBox>
             <asp:Label ID="Label1" runat="server" Text="结束日期: "></asp:Label>
            <asp:TextBox ID="txtEnd" runat="server"  CssClass="txt" style="width: 100px;" ></asp:TextBox>
            <asp:DropDownList ID="drpOrderType"  runat="server" >
                <asp:ListItem Value="1">按月统计</asp:ListItem>
                <asp:ListItem Value="0">按日统计</asp:ListItem>
            </asp:DropDownList>
            <asp:Button  ID="btnSearch" runat="server" Text="查询" OnClick="SearchValue" OnClientClick="return checkValue();"/>
            <asp:Label ID="lblShow" runat="server" Text="显示:"></asp:Label>
            <asp:DropDownList ID="drpPagerSize" AutoPostBack="true" runat="server" OnSelectedIndexChanged="drpPagerSize_SelectedIndexChanged">
            </asp:DropDownList>
        </div>
    </div>
    <asp:ListView ID="lvNews" runat="server" EnableViewState="true" EnableModelValidation="True">
        <LayoutTemplate>
            <div id="list">
                <table id="lvList" cellpadding="0" cellspacing="0" border="0" width="100%">
                    <tr>
                        <th class="sp">
                            &nbsp;
                        </th>
                        <th>
                            日期
                        </th>
                        <th>
                            网银数值
                        </th>
                    </tr>
                    <tbody>
                        <asp:PlaceHolder ID="itemPlaceholder" runat="server" />
                    </tbody>
                </table>
            </div>
        </LayoutTemplate>
        <AlternatingItemTemplate>
            <tr>
                <td class="sp">
                    &nbsp;
                </td>
                <td>
                    <%# GetFormatValue(Eval("CountTime"))%>
                </td>
                <td>
                    <%# Eval("Value")%>
                </td>
            </tr>
        </AlternatingItemTemplate>
        <EmptyDataTemplate>
            <table id="Table2" runat="server">
                <tr>
                    <td>
                        没有记录.
                    </td>
                </tr>
            </table>
        </EmptyDataTemplate>
        <ItemTemplate>
            <tr>
                <td class="sp">
                    &nbsp;
                </td>
                <td>
                   <%# GetFormatValue(Eval("CountTime"))%>
                </td>
                <td>
                    <%# Eval("Value")%>
                </td>
            </tr>
        </ItemTemplate>
    </asp:ListView>
    <div id="foot">
        <div class="foot_left">
        </div>
        <div class="foot_right">
            <uc1:TxtPagination id="usPager" runat="server" />
        </div>
    </div>
</asp:Content>
